package interfaces.superWidgets;

import org.fenggui.layout.StaticLayout;
import org.fenggui.util.Dimension;

public class StaticContent extends InterfaceContainer {
	
	protected int width, height;
	
	public StaticContent(Dimension size) {
		this(size.getWidth(), size.getHeight());
	}
	
	public StaticContent(int width, int height) {
		this(width, height, 0, 0);
	}
	
	public StaticContent(int width, int height, int x, int y) {
		super(new StaticLayout());
		this.width = width;
		this.height = height;
		setSize(width, height);
		setXY(x, y);
		
		layout();
	}
	
	@Override
	public void setSize(int width, int height) {
		super.setSize(width, height);
		this.width = width;
		this.height = height;
	}
}